package com.xyf.sys.enums;

import com.alibaba.fastjson2.JSONArray;
import com.alibaba.fastjson2.JSONObject;
import com.xyf.sys.vo.YunDaPdf;

/**
 * @Author R-H
 * @Date 2024/3/41910
 * @Description
 */
public enum YunDaLogisticStatusEnum {
    GOT("已揽件"),
    /**
     *
     */
    TRANSIT("运输中"),
    /**
     * 已签收
     */
    SIGNED("已签收"),
    /**
     *
     */
    RETURN("退回件"),
    /**
     *
     */
    SIGNFAIL("异常签收");
    private String value;

    YunDaLogisticStatusEnum(String value) {
        this.value = value;
    }

    public static String getStatus(String status) {
        for (YunDaLogisticStatusEnum value : YunDaLogisticStatusEnum.values()) {
            if (value.toString().equals(status)) {
                return value.value;
            }
        }
        return "未知";
    }
}
